package dao;

import java.util.List;

import org.hibernate.Session;

import modele.Depot;


import persistence.BaseDAO;

public class DepotDAO{
	
	public static void ajouterDepot(Depot depot, Session session) throws Exception{
		BaseDAO.getInstance().ajouter(depot,session);
	}

	public static void modifierDepot(Depot depot, Session session) {
		BaseDAO.getInstance().modifier(depot,session);
	}

	public static void SupprimerDepot(Depot depot, Session session) {
		BaseDAO.getInstance().delete(depot,session);
	}

	public static void getDepot(int id, Session session) {
		BaseDAO.getInstance().getObject(Depot.class, id,session);
	}

	public static List getListDepot(String requette, Session session) {
		return BaseDAO.getInstance().getListObject(requette,session);
	}

}
